import shutil

def move_cursor(x, y):
    '''
        Moves terminal cursor to (x, y). x and y start at 1.
    '''

    print("\033[%d;%dH" % (y, x), end="")


def get_terminal_size() -> list:
    term_size = shutil.get_terminal_size()
    return [term_size.columns, term_size.lines]

